package Bean;

import java.util.ArrayList;

import DAO.DAOCinema;
import Model.Cinema;

public class BeanListaCinemas {
	
	
	private ArrayList<Cinema> cinemas;

	public BeanListaCinemas() throws Exception {

        DAOCinema dao = new DAOCinema();
        try{
            this.cinemas = dao.listar(0);
        }catch(Exception e){
            this.cinemas = null;
            System.out.println(e);
        }
    }
	
	
	public ArrayList<Cinema> getCinemas() {
		return cinemas;
	}

	public void setCinemas(ArrayList<Cinema> cinemas) {
		this.cinemas = cinemas;
	}
	
	

}
